<#include "../../base/basic-page.ftl">
<#include "../../common/table.ftl">
<#include "../../common/modal.ftl">
<#include "../../common/form.ftl">
<@page_head>
</@page_head>
<@page_body page_title="分类管理" side_active="/admin/system/menu">
    <div class="main-content container-fluid">
        <div class="row">
            <!--Responsive table-->
            <div class="col-sm-12">
                <div class="card card-border-color card-border-color-primary">
                    <div class="card-header card-header-divider">新建分类</div>
                    <div class="card-body">
                        <form method="post" class="fast-form">
                            <div class="form-group row">
                                <label class="col-md-1 col-form-label text-sm-right" for="input-menu_name">
                                    分类名称:
                                </label>
                                <div class="col-md-3">
                                    <input class="form-control form-control-sm"
                                           autocomplete="off"
                                           name="name" required
                                           data-parsley-required-message="请输入分类名称"
                                           id="input-menu_name" type="text">
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-md-1 col-form-label text-sm-right" for="input-menu_sorts">
                                    排序标识:
                                </label>
                                <div class="col-md-1">
                                    <input class="form-control form-control-sm"
                                           id="input-menu_sorts" type="number"
                                           placeholder="0"
                                           name="orders" autocomplete="off"
                                    >
                                </div>
                            </div>
                            <div class="form-group row">
                                <label class="col-md-1 col-form-label text-sm-right">
                                </label>
                                <div class="col-md-3">
                                    <button class="btn btn-space btn-primary" type="submit">提交</button>
                                    <button class="btn btn-space btn-secondary"
                                            type="button"
                                            onclick="location.href='/user/goods/category'"
                                    >
                                        取消
                                    </button>
                                </div>
                            </div>
                        </form>
                    </div>
                </div>
            </div>
        </div>
    </div>
</@page_body>
<@page_foot>
    <script src="/static/lib/parsley/parsley.min.js" type="text/javascript"></script>
    <script type="text/javascript">
        $(document).ready(function(){
            //initialize the javascript
            var cli = new S7BuyCli();
            cli.init();

            // cli.initGoodsGroup();
        });
    </script>
</@page_foot>